<template>
    <div class="demo">    
        <h1>学校{{name}}{{address}}</h1>
        <!-- props传递参数的前置操作 -->
        <!-- 写成:age意思是表达式，能计算成数字 -->
        <!-- 无法使用key,ref作为prop传递属性 -->
        <!-- <MyStudent ref="MyStudent" name='李四' :age="22" key="123" ref="zzz"/> -->
        <MyStudent name='李四' :age="22" />
    </div>
</template>

<script>
import Student from '../../../19单文件组件/Student.vue'
    import MyStudent from "./MyStudent"
    export default {
        name:"MySchool",
        data(){
            return {
                name:'zzz1',
                address:"zzzzzzzzfffffff"
            }
        },
        methods:{
        },
        components:{
            MyStudent
        }
    }
</script>

<style>
    .demo{
        background-color: orange;
    }
</style>